package ca.cbc.msb.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Arash Bizhanzadeh <arash.bizhan-zadeh@cbc.ca>
 *         Date: 18/05/11
 *         Time: 12:45 PM
 *         Copyrighted to CBC. All rights reserved.
 */
public class ExceptionHandler implements Thread.UncaughtExceptionHandler{
    private static Logger logger = LoggerFactory.getLogger("Exception Handler");
    @Override
    public void uncaughtException(Thread thread, Throwable throwable) {
        logger.error("Uncaught Error in tread " + thread, throwable);
    }
}
